package com.example.idachuappone.index.item;

import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import com.example.idachuappone.BaseActivity;
import com.example.idachuappone.MainTWo;
import com.example.idachuappone.R;
import com.example.idachuappone.index.dialog.IDialog;

public class HotPrompOkActivity extends BaseActivity implements OnClickListener {
    private Button btn_back;
    private Button btn_phone;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_hot_promp_ok);
        initView();
    }

    private void initView() {
        this.btn_phone = (Button) findViewById(R.id.btn_phone);
        this.btn_phone.setOnClickListener(this);
        this.btn_back = (Button) findViewById(R.id.btn_back);
        this.btn_back.setOnClickListener(this);
    }

    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_back /*2131165198*/:
                startActivity(new Intent(this, MainTWo.class));
            case R.id.btn_phone /*2131165312*/:
                new IDialog().showPhone(this).show();
            default:
        }
    }

    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == 4) {
            startActivity(new Intent(this, MainTWo.class));
        }
        return true;
    }
}
